Page({
  data: {
    // 模拟5条预约数据
    appointmentList: [
      { id: 1, date: '2025-06-10 09:00', hospital: 'XX人民医院', department: '内科', status: '已预约' },
      { id: 2, date: '2025-06-11 14:30', hospital: 'XX中医院', department: '外科', status: '待就诊' },
      { id: 3, date: '2025-06-12 10:15', hospital: 'XX妇幼保健院', department: '妇产科', status: '已取消' },
      { id: 4, date: '2025-06-13 08:45', hospital: 'XX儿童医院', department: '儿科', status: '已完成' },
      { id: 5, date: '2025-06-14 15:00', hospital: 'XX口腔医院', department: '口腔科', status: '待支付' }
    ]
  },

  onLoad(options) {
    // 页面加载时可处理跳转参数（如从首页预约按钮跳转）
  },
  goBack() {
    wx.navigateBack({
      delta: 1
    })
  }
})